'''
Created on Aug 24, 2012

@author: Yonghui_Min
'''
import os

def output(debug_prefix, debug_msg):
    f = open('log.txt', 'ab+')
    f.seek(os.SEEK_END)
    s = '%s : %s\n' % (debug_prefix, debug_msg)
    print s
    f.write(s)
    f.flush()
    f.close()